from appium.webdriver.common.mobileby import MobileBy

from app.base_page import BasePage
from app.contract_page import ContractPage


class MainPage(BasePage):
    def goto_contract(self):
        self.find_and_click(MobileBy.XPATH,"//*[@text='通讯录']")
        return ContractPage(self.driver)